From f872c8970e994aeb7eef65804895676d48d31099 Mon Sep 17 00:00:00 2001 From: Javier Marcet Date: Mon, 24 Jun 2024 21:29:56 +0200 Subject: [PATCH] python-docker: fix pyproject.toml issues * Getting build dependencies for wheel... ERROR Missing dependencies: hatch-vcs File "./staging_dir/hostpkg/lib/python3.11/site-packages/setuptools/config/pyprojecttoml.py", line 51, in validate raise ValueError(f"{error}\n{summary}") from None ValueError: invalid pyproject.toml config: `project.license`. configuration error: `project.license` must be valid exactly by one definition (2 matches found): - keys: 'file': {type: string} required: ['file'] - keys: 'text': {type: string} required: ['text'] Signed-off-by: Javier Marcet --- .../python-docker/patches/pyproject.patch | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 lang/python/python-docker/patches/pyproject.patch diff --git a/lang/python/python-docker/patches/pyproject.patch b/lang/python/python-docker/patches/pyproject.patch new file mode 100644 index 0000000000..4d5285b6f3 --- /dev/null +++ b/lang/python/python-docker/patches/pyproject.patch @@ -0,0 +1,18 @@ +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -1,5 +1,5 @@ + [build-system] +-requires = ["hatchling", "hatch-vcs"] ++requires = [] + build-backend = "hatchling.build" + + [project] +@@ -7,7 +7,7 @@ name = "docker" + dynamic = ["version"] + description = "A Python library for the Docker Engine API." + readme = "README.md" +-license = "Apache-2.0" ++license = { text = "Apache-2.0" } + requires-python = ">=3.8" + maintainers = [ + { name = "Docker Inc.", email = "no-reply@docker.com" }, -- 2.30.2